package com.ytjj.qmyx.admin.service.imService;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.model.ImMessageInfo;
import com.ytjj.qmyx.admin.model.dto.ImMessageInfoDto;
import com.ytjj.qmyx.admin.model.response.im.ImMessageInfoResponse;
import com.ytjj.qmyx.admin.model.vo.ImMessageInfoVO;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface ImMessageInfoService {

    /**
     *  获取聊天历史信息
     * @param sessionId
     * @return
     */
    List<ImMessageInfoDto> getChatHistory(Integer sessionId, Integer isAll, String isAccess);

    /**
     * 客服撤回消息-只有2分钟以内的消息能撤回
     * @param imMessageInfoVO
     * @return
     */
    CommonResult messageRecall(@RequestBody ImMessageInfoVO imMessageInfoVO);

    List<ImMessageInfoResponse> queryUserHistoryMessage(String userId);

    int selectUnreadMessage(String receiveUserId);
}
